package snt.com.webservice;

import android.app.AlertDialog;
import android.view.View;
import android.widget.Button;

public class UnreadedLocationException extends Exception{

	AlertDialog alertDialog;
	
	public UnreadedLocationException(String detailMessage, Throwable throwable) {
		super(detailMessage, throwable);
		//alertDialog = getd
	    Button okButton = alertDialog.getButton(AlertDialog.BUTTON_POSITIVE); 
	    okButton.setOnClickListener(new View.OnClickListener() {  
	        public void onClick(View v) 
	        { 
	            performOkButtonAction(); 
	        } 
	    }); 

	}
	private void performOkButtonAction() { 
		alertDialog.cancel();
	} 

	
}
